home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.ada,comp.lang.c,comp.realtime
- Subject: Re: ADA to C converter, the dream ?
- Date: 15 Feb 1996 07:45:50 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4fvkfeINN8cg@keats.ugrad.cs.ubc.ca>
- References: <4fn8bv$6d1@news.be.innet.net> <tgmDMoBMy.E94@netcom.com> <3121E777.304D@afit.af.mil>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <3121E777.304D@afit.af.mil>,
- Rusty Baldwin <rbaldwin@nvi.nvi.net> wrote:
- >Thomas G. McWilliams wrote:
- >
- >> There exists a good Pascal to C translator called p2c available
- >> in source code form (I think it might be GNU software). It might
- >> serve as a rough basis on which to build something like this.
- >> Perhaps you could run your Ada code through some Perl filters
- >> and post-process with p2c. Very hackish, I know. Maybe a Modula
- >> to C translator could be hacked more easily.
- >Why don't you use the gnat (Ada 95) compiler. It is a front end to the
- >gcc compiler. Perhaps there is a switch to generate C code??
-
- Absolutely not. As someone in this thread already pointed out, gnat is a
- compiler, not a translator of the Ada language into GNU C.
-
- It uses the code-generator "back end" that is common to the GNU C compiler,
- C++, g77 and so forth.
-
- The compilers which share this back end must translate their input language
- into a special machine-independent parse tree data structure. The back end will
- take over from there to generate intermediate code and final target object
- code.
- --
-
-